package com.edu.java.dao;

import com.edu.java.entity.CategoryProTemplate;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * TODO
 *
 * @author miaozhiqiang
 * @version 1.0
 * @date 2022/7/17 4:05 上午
 */
@Repository
public interface CategoryPropTemplateDao extends JpaRepository<CategoryProTemplate,Long> {

    @Query(value = "select propId from CategoryProTemplate where categoryId = ?1",nativeQuery = true)
    public List<Long> findPropId(Long id);
}
